package example;
import com.adventnet.snmp.beans.*;

public class Beansexample {

public static void main(String args[]) {
 
    SnmpTarget target = new SnmpTarget();

    // set the remote host - mmake sure the agent is running
    target.setTargetHost("localhost");  
    
    // add OID
    target.setObjectID(".1.3.6.1.2.1.1.5.0");  
    
    // perform get request
    System.out.println(target.snmpGet());
    System.exit(0);

    }

}

